package com.lagou.demo.controller;

import com.lagou.demo.security.Security;
import com.lagou.demo.service.IDemoService;
import com.lagou.edu.mvcframework.annotations.LagouAutowired;
import com.lagou.edu.mvcframework.annotations.LagouController;
import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Security({"admin"})
@LagouController
@LagouRequestMapping("/admin")
public class AdminController {

    /**
     * URL: /demo/query?name=lisi
     * @param request
     * @param response
     * @return
     */
    @LagouRequestMapping("/query")
    public String query(HttpServletRequest request, HttpServletResponse response) {
        return "admin query";
    }
}
